//
//  UITextField+QuickCreateExtension.swift
//  jiurongjk
//
//  Created by cabinzhao on 2/28/17.
//  Copyright © 2017 xuewei. All rights reserved.
//

import UIKit

extension UITextField {
    
//    public convenience init(fontSize:CGFloat, placeHolderText:String, placeHolderColor:UIColor) {
//        self.init()
//
//        self.font = UIFont.systemFont(ofSize: fontSize)
//        paragraphStyle
//        NSAttributedStringKey.paragraphStyle
//
//        let style:NSParagraphStyle = self.defaultTextAttributes[NSAttributedStringKey.] as! NSParagraphStyle
//        let muStyle = NSMutableParagraphStyle()
//        muStyle.lineSpacing = style.lineSpacing
//        muStyle.paragraphSpacing = style.paragraphSpacing
//        muStyle.alignment = style.alignment
//        muStyle.firstLineHeadIndent = style.firstLineHeadIndent
//        muStyle.headIndent = style.headIndent
//        muStyle.tailIndent = style.tailIndent
//        muStyle.lineBreakMode = style.lineBreakMode
//        muStyle.maximumLineHeight = style.maximumLineHeight
//        muStyle.baseWritingDirection = style.baseWritingDirection
//        muStyle.lineHeightMultiple = style.lineHeightMultiple
//        muStyle.paragraphSpacingBefore = style.paragraphSpacingBefore
//        muStyle.hyphenationFactor = style.hyphenationFactor
//
//        muStyle.minimumLineHeight = (self.font?.lineHeight)! - ((self.font?.lineHeight)! - UIFont.systemFont(ofSize: fontSize).lineHeight) * 0.5
//
//        let dicAttr = [
//            NSAttributedStringKey.font.rawValue:UIFont.systemFont(ofSize: fontSize),
//            NSAttributedStringKey.foregroundColor:placeHolderColor,
//            NSAttributedStringKey.paragraphStyle: muStyle
//            ] as! [String : Any]
//        let attriStr = NSAttributedString(string: placeHolderText, attributes: dicAttr)
//        self.attributedPlaceholder = attriStr
//    }
    
}
